import request from '@/utils/request'

export class CaseService {

// 查询案件列表
  static listCase(query) {
    return request({
      url: '/api/archives/case/list',
      method: 'get',
      params: query
    })
  }

// 查询案件详细
  static getCase(caseId) {
    return request({
      url: '/api/archives/case/' + caseId,
      method: 'get'
    })
  }

// 新增案件
  static addCase(data) {
    return request({
      url: '/api/archives/case',
      method: 'post',
      data: data
    })
  }

// 修改案件
  static updateCase(data) {
    return request({
      url: '/api/archives/case',
      method: 'put',
      data: data
    })
  }

// 删除案件
  static delCase(caseId) {
    return request({
      url: '/api/archives/case/' + caseId,
      method: 'delete'
    })
  }

}
